package com.wk.springboot.spring.aop;


import org.springframework.stereotype.Component;

/**
 * @User admin
 * @Date 2020/11/26 8:58
 **/

@Component
public class Calculator {

    public Calculator() {
        System.out.println("创建bean");
    }

    public Integer add(int x, int y){
        System.out.println("add方法执行...");
        return x/y;
    }

}
